package org.jeecg.zhenxuan.CommonUtils;


import java.util.Map;

public class TransferInterface {

	/**
	 * basic_secretId=idtest01
	 * basic_key=123456
	 */


//	@Value("")
	private static String BASIC_SECRETID = "idtest01";
	private static String BASIC_KEY = "123456";


	/**
	 * 获取请求参数，按参数首字母排序并加密
	 *
	 * @param paraMap
	 * @return
	 */
	public static String GetStandardSign(Map<String, String> paraMap) {
		paraMap = MapComparator.SortMapByKey(paraMap);
		String paras = MapComparator.getMapToString(paraMap);
		String sign = PMD5Utils.encodeByMD5((paras + "&" + BASIC_KEY), false).toLowerCase() + BASIC_SECRETID;
		return sign;
	}
}
